package com.ruoyi.request.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.request.mapper.TbMatchmakingRequestMapper;
import com.ruoyi.request.domain.TbMatchmakingRequest;
import com.ruoyi.request.service.ITbMatchmakingRequestService;

/**
 * 牵线申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
@Service
public class TbMatchmakingRequestServiceImpl implements ITbMatchmakingRequestService 
{
    @Autowired
    private TbMatchmakingRequestMapper tbMatchmakingRequestMapper;

    /**
     * 查询牵线申请
     * 
     * @param requestId 牵线申请主键
     * @return 牵线申请
     */
    @Override
    public TbMatchmakingRequest selectTbMatchmakingRequestByRequestId(Long requestId)
    {
        return tbMatchmakingRequestMapper.selectTbMatchmakingRequestByRequestId(requestId);
    }

    /**
     * 查询牵线申请列表
     * 
     * @param tbMatchmakingRequest 牵线申请
     * @return 牵线申请
     */
    @Override
    public List<TbMatchmakingRequest> selectTbMatchmakingRequestList(TbMatchmakingRequest tbMatchmakingRequest)
    {
        return tbMatchmakingRequestMapper.selectTbMatchmakingRequestList(tbMatchmakingRequest);
    }

    /**
     * 新增牵线申请
     * 
     * @param tbMatchmakingRequest 牵线申请
     * @return 结果
     */
    @Override
    public int insertTbMatchmakingRequest(TbMatchmakingRequest tbMatchmakingRequest)
    {
        return tbMatchmakingRequestMapper.insertTbMatchmakingRequest(tbMatchmakingRequest);
    }

    /**
     * 修改牵线申请
     * 
     * @param tbMatchmakingRequest 牵线申请
     * @return 结果
     */
    @Override
    public int updateTbMatchmakingRequest(TbMatchmakingRequest tbMatchmakingRequest)
    {
        return tbMatchmakingRequestMapper.updateTbMatchmakingRequest(tbMatchmakingRequest);
    }

    /**
     * 批量删除牵线申请
     * 
     * @param requestIds 需要删除的牵线申请主键
     * @return 结果
     */
    @Override
    public int deleteTbMatchmakingRequestByRequestIds(Long[] requestIds)
    {
        return tbMatchmakingRequestMapper.deleteTbMatchmakingRequestByRequestIds(requestIds);
    }

    /**
     * 删除牵线申请信息
     * 
     * @param requestId 牵线申请主键
     * @return 结果
     */
    @Override
    public int deleteTbMatchmakingRequestByRequestId(Long requestId)
    {
        return tbMatchmakingRequestMapper.deleteTbMatchmakingRequestByRequestId(requestId);
    }
}
